/*
-----------------------------------------------------------------------------------------------
This source file is part of the Particle Universe product.

Copyright (c) 2010 Henry van Merode

Usage of this program is licensed under the terms of the Particle Universe Commercial License.
You can find a copy of the Commercial License in the Particle Universe package.
-----------------------------------------------------------------------------------------------
*/

#ifndef __PU_ONCOLLISION_OBSERVER_H__
#define __PU_ONCOLLISION_OBSERVER_H__

#include "ParticleUniversePrerequisites.h"
#include "ParticleUniverseCommon.h"
#include "ParticleUniverseObserver.h"

namespace ParticleUniverse
{
	/** This class is used to observe whether all particles of a technique are no longer emitted.
    */
	class _ParticleUniverseExport OnCollisionObserver : public ParticleObserver
	{
		protected:
			bool mContinue;

		public:
			OnCollisionObserver(void) : ParticleObserver()
			{
			};
	        virtual ~OnCollisionObserver(void) {};

			/** 
	        */
			virtual bool _observe (ParticleTechnique* particleTechnique,
				Particle* particle, 
				Ogre::Real timeElapsed);
	};

}
#endif
